#include<stdio.h>
int main()
{
	char arr[30];
	int i = 0;
	char ch;
	while ((ch = getchar()) != '\n')
	{
		arr[i] = ch;
		i++;
	}
	for (i -= 1; i >= 0; i--)
	{
		printf("%c", arr[i]);
	}

	return 0;
}